package com.example;

/**
 * @desc:
 * @author: Shoko
 * @date: 2025/5/25
 */
public class EscapeDoor implements ResponseDevice{
    @Override
    public void response(TempEvent event) {
        if (event.getTemp() > 40) { // 假设40度以上开门
            System.out.println("安全逃生门: 温度" + event.getTemp() + "℃极度危险，自动开启！");
        }
    }
}
